﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using ueEngine.Biz.Inf.Entities.DBSupport;

namespace ueEngine.Biz.Inf.Entities
{
    [Table("SystemUser")]
    public class SystemUser
    {
        [Column("UserName", TypeName = "varchar")]
        [StringLength(200)]
        [Key]
        public string UserName { get; set; }

        [Column("Password", TypeName = "varchar")]
        [StringLength(200)]
        [Required]
        public string Password { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateDate",TypeName="datetime")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 角色。0：客服，1：超级管理员
        /// </summary>
        [Column("Role",TypeName="int")]
        public int Role { get; set; }
    }
}
